package messages;

import info.Flight;

import java.io.Serializable;
import java.util.List;

public class SearFliResponseMessage extends Message implements Serializable {

    private boolean isSuccess =false;
    private List<Flight> flightList;

    public SearFliResponseMessage(List<Flight> FlightList) {
        super(MSG_TYPE.MSG_SEARFLI_ACK);
        this.flightList = FlightList;
    }

    public boolean isSuccess(){return isSuccess;}
    public void setSuccess(boolean success) {
        isSuccess = success;
    }


    public void setFlightList(List<Flight> FlightList) {
        flightList=FlightList;
    }

    public List<Flight> getFlightList() {
        return flightList;
    }

}
